package util;

import java.awt.*;

public class DebuggerLine extends Frame {

    public DebuggerLine() {
        setUndecorated(true);
        this.setOpacity(0.5f);
        this.setBounds(0, 0, 1920, 1000);
        this.setVisible(true);
        // 窗口置顶
        this.setAlwaysOnTop(true);
    }

    // 坐标轴
    public void drawLine(int x, int y) {
        Graphics g = getGraphics();
        g.drawLine(x, 0, x, y);
        g.drawLine(0, y, x, y);
        repaint();
    }

    // 点
    public void drawPoint(int x, int y) {
        Graphics g = getGraphics();
        g.drawLine(x, y, x, y);
        repaint();
    }
}